import Vue from 'vue'
import App from './App.vue' //APP根组件
import './registerServiceWorker'
import router from './router' //引入路由
import store from './store'

Vue.config.productionTip = false

//全局组件注册
import Todo from '@/components/Todo.vue'
Vue.component('Todo',Todo)

// 注册mock
import "./utils/mock"
new Vue({
  router, //全局挂载路由 4
  store, //Vuex
  render: h => h(App) //Vue渲染参数
}).$mount('#app')  //把Vue实例 载入app里
